using System;

namespace SharpMud.Net.Telnet.MXP
{
	public class LineTag
	{
		#region Private Variables
		private LineTagType _LineTagType;
		#endregion
		
		#region Constructors
		private LineTag()
		{
		}
		public LineTag(LineTagType lineTagType)
		{
			_LineTagType = lineTagType;
		}
		#endregion

		#region Public Properties
		public LineTagType LineTagType
		{
			get
			{
				return _LineTagType;
			}
			set
			{
				_LineTagType = value;
			}
		}
		#endregion

		#region Public Methods
		public string ToString()
		{
			return String.Format(LineTagSequence_frmt,((int)this.LineTagType).ToString());
		}
		#endregion

		#region Static and Constant Stuff
		private const string LineTagSequence_frmt = Utility.ESC + "[{0}z";
		#endregion
	}
}
